package com.usian.feign;

import com.usian.fallback.UserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.User;


@FeignClient(value="sentinel-provider",fallbackFactory = UserFeignFallback.class)
public interface UserFeign {

    @RequestMapping("/getUserById")
    User getUserById(@RequestParam Integer id, @RequestParam String nam);
}